<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
	"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>校园宿舍管理系统</title>
<link href="${path }/css/style.css" 
	rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${path }/js/checkForm.js" 
	charset="gb2312"></script>
<meta http-equiv="Content-Type" 
	content="text/html;charset=gb2312"/>
</head>

<body>
<center>
<table class="out">
<tr>
    <td class="title">校园宿舍管理系统</td>
</tr>
<tr>
    <td class="subtitle">&nbsp;</td>
</tr>
<tr>
  	<td class="content">
  	<table class="out">
    <tr>
        <td class="left" >
        	<%@ include file="left.jsp"%>
     	</td>
     	
        <td class="right">
        <table class="rightTable"> 
        <tr>
          	<td class="mainMenu">学生迁出</td>
        </tr>
        <tr>
            <td class="rightout">
            <form name="form1" method="post" action="deleteStuDom.do" 
            	onSubmit="return checkStuOutDom()">
            <table class="fullTable">
            <tr class="inputTr">
                <td class="inputLeft">&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
              	<td class="inputLeft">学生学号：</td>
              	<td>
					<select name="sId" onchange="changeStudentStuOutDom()">						
					<option value="">请选择学生</option>
					<c:forEach items="${inStudentList }" var="student">
					<c:if test="${student.id==currentStudent.id }">
						<option value="${student.id }" 
							selected="selected">${student.username }</option>
					</c:if>
					<c:if test="${student.id!=currentStudent.id }">
						<option value="${student.id }">${student.username }</option>
					</c:if>
						
					</c:forEach>
					</select>
				</td>
            </tr>
            <tr>
               	<td class="inputLeft">学生姓名：</td>
               	<td>${currentStudent.name }</td>
            </tr>
            <tr>
              	<td class="inputLeft">学生性别：</td>
              	<td>${currentStudent.sex }</td>
            </tr>
            <tr>
              	<td class="inputLeft">目前宿舍楼：</td>
              	<td>${currentBuilding.name }</td>
            </tr>
            <tr>
              	<td class="inputLeft">目前寝室：</td>
              	<td>${currentDomitory.name }</td>
            </tr>
       	       
	        <tr>                              	
                <td colspan="2">
                <input type="submit" value="确定迁出"></td>
            </tr>
            </table>
            </form>
            </td>
        </tr>
        </table>
        </td>
    </tr>
    </table>
    </td>
</tr>
<tr>
    <td class="bottom">&nbsp;</td>
</tr>
</table>
</center>
</body>
</html>